package org.example.leetcode.common.utils;


import org.example.leetcode.common.domain.SysUser;

public class UserInfo {
    private static ThreadLocal<SysUser> currentUser=new ThreadLocal<>();
    public static void setUserInfo(SysUser member){
        currentUser.set(member);
    }
    public static SysUser getUserInfo(){
        return currentUser.get();
    }
    public static void clear()
    {
        currentUser.remove();
    }
}
